#include <stdio.h>
int main(void)
{
	int i,k,n;
	for (i=1;i<=9;i++){
		for (k=1;k<=i-1;k++)
			printf("   ");
		for (n=1;n<=9-n;n++)
			printf("%d",i);

	}  
	return 0;
}